package com.train.forum.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.train.forum.pojo.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param phone
     * @Desc: 根据用户电话号码查询用户记录
     * @Author: wjl
     * @DateTime: 2025/05/12 20:22:59
     * @Return: @return {@link User }
     */
    @Select("select * from user where phone =#{phone}")
    User selectByPhone(String phone);


}
